//
//  DetailTableEdit.h
//  SplitForce
//
//  Created by Ron Hess on 7/20/10.
//  Copyright 2010 Salesforce.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "zkSforce.h"
#import "zkDescribeLayout.h"
#import "zksforceclient.h"
#import "RootViewController.h"
#import "zkSObject.h"

#import "zkDescribeLayoutResult.h"
#import "zkDescribeLayoutButtonSection.h"
#import "zkDescribeLayoutSection.h"
#import "zkDescribeLayoutButton.h"
#import "zkRelatedList.h"
#import "zkRelatedListSort.h"
#import "zkRelatedListColumn.h"
#import "zkDescribeLayoutItem.h"
#import "zkDescribeLayoutRow.h"
#import "zkDescribeLayoutComponent.h"
#import "SplitForceAppDelegate.h"

#import "UITableViewCellFixed.h"
@interface DetailTableEdit : UITableViewController <UITextFieldDelegate, ForceClientDelegate>{
	ZKDescribeLayout *theLayout; 
	ZKSObject *detailItem;
	NSArray *detailLayouSections; 
	ZKDescribeSObject *describe;
	
}
@property (nonatomic, retain) ZKDescribeLayout  *theLayout;
@property (nonatomic, retain) NSArray  *detailLayouSections;
@property (nonatomic, retain) ZKSObject  *detailItem;
@property (nonatomic, retain) ZKDescribeSObject  *describe;

//- (NSString *) onecol : (ZKDescribeLayoutItem *)item ;

/*- (void	) textOrEdit:	(ZKDescribeLayoutComponent *)laycomp : 
(UITableViewCellFixed *)cell : 
(ZKDescribeLayoutItem *) item :
(NSInteger )row;
*/
- (void)registerForKeyboardNotifications;
- (ZKSObject *)saveDetailItem;

- (void) endEditing ;
@end
